/*
 * Created on Mar 14, 2010
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package ro.qi.framework.sys.media;

import java.util.Date;

/**
 * @author George Pogorelschi
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class CachedMedia {

	private int id = 0;
	private int width = 0;
	private int height = 0;
	private long contentLength = 0;
	private String fileName;
	private String entityTag;
	private String contentType;
	private String pathFilename;
	private Date updated;
	private Date created;		

	public CachedMedia() {
	}

	public void setId(int i) {
		id = i;
	}

	public int getId() {
		return id;
	}

	public void setFileName(String string) {
		fileName = string;
	}

	public String getFileName() {
		return fileName;
	}

	public void setContentLength(long contentLength) {
		this.contentLength = contentLength;
	}

	public long getContentLength() {
		return contentLength;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getContentType() {
		return contentType;
	}

	public void setPathFilename(String string) {
		pathFilename = string;
	}

	public String getPathFilename() {
		return pathFilename;
	}

	public String getEntityTag() {
		return entityTag;
	}

	public void setEntityTag(String entityTag) {
		this.entityTag = entityTag;
	}

	public void setCreated(Date date) {
		created = date;
	}

	public Date getCreated() {
		return created;
	}

	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date date) {
		updated = date;
	}
	
	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public String toString() {
		return (getId() + ", " + getFileName() + ", " + getContentType() + ", " + getPathFilename() + ", " + getCreated().toString() + ", " + getUpdated().toString());
	}

}
